package com.etc.entity;

/**
 * 自定义部门类
 * @author Administrator
 *
 */
public class Dept {
	private int deptNo;
	private String deptName;
	private String deptAddress;

	public int getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(int deptNo) {
		this.deptNo = deptNo;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptAddress() {
		return deptAddress;
	}

	public void setDeptAddress(String deptAddress) {
		this.deptAddress = deptAddress;
	}

	public Dept() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * 带参数的构造
	 * 
	 * @param deptNo
	 *            部门编号
	 * @param deptName
	 *            部门名称
	 * @param deptAddress
	 *            部门的地址
	 */
	public Dept(int deptNo, String deptName, String deptAddress) {
		super();
		this.deptNo = deptNo;
		this.deptName = deptName;
		this.deptAddress = deptAddress;
	}
	
	

	/**
	 * 两个参数的构造
	 * @param deptName  部门名称
	 * @param deptAddress  部门地址
	 */
	public Dept(String deptName, String deptAddress) {
		super();
		this.deptName = deptName;
		this.deptAddress = deptAddress;
	}

	@Override
	public String toString() {
		return "Dept [deptNo=" + deptNo + ", deptName=" + deptName + ", deptAddress=" + deptAddress + "]";
	}

}
